package com.ysdwl.util;

import java.sql.SQLException;

import com.ysdwl.dao.impl.ProviderDao;
import com.ysdwl.dao.impl.UserDao;
import com.ysdwl.model.Provider;
import com.ysdwl.model.User;

public class MyTest {
	
	public static void main(String[] args) throws SQLException{
		
		UserDao  userDao= new UserDao(); 
		User user = userDao.findModelById(2);
		System.out.println(user);
		System.out.println("________________________________________________");
		
		UserDao  userDaoByName= new UserDao(); 
		User name = userDao.findModelByName("admin");
		System.out.println(name);
		System.out.println("________________________________________________");

		ProviderDao  ProviderDao= new ProviderDao(); 
		Provider Provider = ProviderDao.findModelById(1);
		System.out.println(Provider);
	}
	
}
